﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SimpleTasks.Views
{
   public partial class SimpleTaskItem : UserControl, ISimpleTaskItemView
   {
      public SimpleTaskItem()
      {
         InitializeComponent();
      }

      public string Description
      {
         get
         {
            return txtDescription.Text;
         }
         set
         {
            txtDescription.Text = value;
         }
      }

      public event Action Create;

      private void cmdCreate_Click(object sender, EventArgs e)
      {
         if (Create != null)
         {
            Create();
         }
      }
   }
}
